export const addrules = () => {
  return {
    title: [{ required: true, message: '请输入...', trigger: 'blur' }],
    basicPerson: [{ required: true, message: '请输入...', trigger: 'blur' }],
    newType: [{ required: true, message: '请选择...', trigger: 'blur' }],
    oldType: [{ required: true, message: '请选择...', trigger: 'blur' }],
    handlePersonId: [{ required: true, message: '请选择...', trigger: 'blur' }],
    basicContent: [{ required: true, message: '请输入...', trigger: 'blur' }],
    handleStartTime: [{ required: true, message: '请选择...', trigger: 'blur' }],
    approveUserId: [{ required: true, message: '请选择...', trigger: 'blur' }],
  };
};
export const modalrules = () => {
  return {
    alarmPerson: [{ required: true, message: '请输入...', trigger: 'blur' }],
    alarmMobile: [
      {
        required: true,
        pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/,
        message: '请输入正确的手机号码',
        trigger: 'blur',
      },
    ],
    alarmPhone: [{ required: true, message: '请输入...', trigger: 'blur' }],
    alarmAddress: [{ required: true, message: '请输入...', trigger: 'blur' }],
    alarmHouse: [{ required: true, message: '请输入...', trigger: 'blur' }],
    caseNo: [{ required: true, message: '请输入...', trigger: 'blur' }],
    caseType: [{ required: true, message: '请输入...', trigger: 'blur' }],
    caseArea: [{ required: true, message: '请输入...', trigger: 'blur' }],
    caseFilingDate: [{ required: true, message: '请选择...', trigger: 'blur' }],
    caseBegintime: [{ required: true, message: '请选择...', trigger: 'blur' }],
    caseAddress: [{ required: true, message: '请输入...', trigger: 'blur' }],
    floatingPeople: [{ required: true, message: '请选择...', trigger: 'blur' }],
    systemInput: [{ required: true, message: '请选择...', trigger: 'blur' }],
    caseContent: [{ required: true, message: '请输入...', trigger: 'blur' }],
    returnVisitPersion: [{ required: true, message: '请输入...', trigger: 'blur' }],
    returnVisitAddress: [{ required: true, message: '请输入...', trigger: 'blur' }],
    returnVisitDate: [{ required: true, message: '请输入...', trigger: 'blur' }],
    returnVisitRelation: [{ required: true, message: '请输入...', trigger: 'blur' }],
    returnVisitContent: [{ required: true, message: '请输入...', trigger: 'blur' }],
    returnVisitCheck: [{ required: true, message: '请输入...', trigger: 'blur' }],
    returnVisitRemark: [{ required: true, message: '请输入...', trigger: 'blur' }],
    returnVisitFile: [{ required: true, message: '请输入...', trigger: 'blur' }],
    processBasicId: [{ required: true, message: '请输入...', trigger: 'blur' }],
    enclosure: [{ required: true, message: '请上传...', trigger: 'blur' }],
  };
};
